Changing a Video Capture Setting

The following example uses the capCaptureGetSetup1A5QZ0N and capCaptureSetSetup115V26W macros to change the capture rate from the default value (15 frames per second) to 10 frames per second.

CAPTUREPARMS CaptureParms;

float FramesPerSec = 10.0;

 

capCaptureGetSetup(hWndC, &CaptureParms, sizeof(CAPTUREPARMS));

 

CaptureParms.dwRequestMicroSecPerFrame = (DWORD) (1.0e6 /

    FramesPerSec);

capCaptureSetSetup(hWndC, &CaptureParms, sizeof (CAPTUREPARMS));